import { Resolver } from '@nestjs/graphql';
import { MenuService } from './menu.service';
import { Menu } from './entities/menu.entity';
import { BaseResolver } from 'src/common/mongodb/BaseResolver';
import { MenuDto } from './dto';

@Resolver(() => Menu)
export class MenuResolver extends BaseResolver<Menu, typeof MenuDto>
  (Menu, MenuDto, '后台菜单') {
  constructor(private readonly menuService: MenuService) {
    super(menuService);
  }
}
